/*
 * @Description:
 * @Version: 1.0
 * @Author: wenbin
 * @Date: 2021-10-12 13:59:14
 * @LastEditors: wenbin
 * @LastEditTime: 2021-10-13 14:16:37
 * @FilePath: /jwb-vue3-ui/vite.config.ts
 * Copyright (C) 2021 wenbin. All rights reserved.
 */
import { defineConfig } from "vite";
import { resolve } from "path";
import vue from "@vitejs/plugin-vue";

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue()],
  server: {
    host: "0.0.0.0",
    port: 3333
  },
  resolve: {
    // 路径别名
    alias: {
      "@": resolve(__dirname, "./src"),
      "~": resolve(__dirname, "./packages")
    }
  }
});
